<%-- 
    Document   : mostrarAltaSolucion
    Created on : 10/10/2013, 10:27:54 AM
    Author     : Andres
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@taglib uri="/struts-tags" prefix="s"%>
<h3>Ticket</h3>
<table border="0" width="60%" cellpadding="0" cellspacing="0" id="id-form" name="tablaDisp">
        <tr>
            <th valign="top">
                   ID Ticket:
            </th> 
            <td>
                <input type="text" class="inp-form" value="<s:property value='ticket.IdTicket'/>" name="idTicket" id="idTicket" readonly/>
            </td>    
        </tr>
        <tr>
            <th valign="top">
                   Descripcion:
            </th> 
            <td>
                <s:property value='ticket.Descripcion'/>
            </td>    
        </tr>
        <tr>
            <th valign="top">
                   Fecha:
            </th> 
            <td>
                <s:property value='ticket.FechaInicio'/>
            </td>    
        </tr>
        <tr>
            <th valign="top">
                   ID Equipo:
            </th> 
            <td>
                <input type="text" class="inp-form" value="<s:property value='ticket.IdDispositivo.IdDisp'/>" name="idDisp" id="idDisp" readonly/>
            </td>    
        </tr>
        <tr>
            <td colspan="7"><input type="button" class="btn" value="Regresar" id="btnRegresar"></td>
        </tr>    
 </table>
<h3>Agregar Solución</h3>
<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
        <tr>
            <th valign="top">
                Tipo Solución:
            </th>
            <td>
                <select id="tipoSolucion" name="tipoSolucion" size=1>   
                    <option value="">[Tipo Solución]</option>
                    <option value="RFC">Gestión de Cambio</option>                          
                    <option value="SN">Solución Nueva</option>                          
                    <option value="CMDB">Solución Conocida</option>                                                                               
                </select> 
            </td> 
            <td>
                <div class="error-left"></div>
                <div class="error-inner" id="etipoSolucion">Este campo es requerido.</div>
            </td>
        </tr> 
</table>     
<table border="0" cellpadding="0" cellspacing="0"  id="id-form" name="form1">
        <tr>
            <th valign="top">
                   Causa:
            </th> 
            <td>
                <textarea rows="" cols="" class="form-textarea" id="causa1" name="causa1"></textarea>
            </td>    
            <td>
            <div class="error-left"></div>
            <div class="error-inner" id="ecausa1">Este campo es requerido.</div>
            </td>
        </tr>
        <tr>
            <th valign="top">
                Solución: 
            </th> 
            <td>
                <textarea rows="" cols="" class="form-textarea" id="solucion1" name="solucion1"></textarea>
            </td>    
            <td>
            <div class="error-left"></div>
            <div class="error-inner" id="esolucion1">Este campo es requerido.</div>
            </td>
        </tr>
        <tr>
            <th valign="top">
                SLA: 
            </th> 
            <td>
                <select id="idSla1" name="idSla1">
                        <option value="">[SLA]</option>
                        <s:iterator value="listaSlas" status="estatus">
                            <option value="<s:property value='IdSLA'/>"><s:property value="IdSLA"/></option>   
                        </s:iterator>
                </select>
            </td>    
            <td>
            <div class="error-left"></div>
            <div class="error-inner" id="eidSla1">Este campo es requerido.</div>
            </td>
        </tr>
        <tr>
            <td><input type="button" id="btnAltaSolucion" value="Aceptar" class="btn"/></td>
        </tr> 
</table>
<table border="0" cellpadding="0" cellspacing="0"  id="id-form" name="form2">
        <tr>
            <th valign="top">
                   ID Ticket Solucion:
            </th> 
            <td>
                <input type="text" class="inp-form" value="" name="idTicketSolucion" id="idTicketSolucion"/>
            </td>    
            <td>
            <div class="error-left"></div>
            <div class="error-inner" id="eidTicketSolucion">Este campo es requerido.</div>
            </td>
        </tr>
        <tr>
            <td><input type="button" id="btnAltaSolucion" value="Aceptar" class="btn"/></td>
        </tr> 
</table>
<table border="0" cellpadding="0" cellspacing="0"  id="id-form" name="form3">
        <tr>
            <th valign="top">
                   Causa:
            </th> 
            <td>
                <textarea rows="" cols="" class="form-textarea" id="causa2" name="causa2"></textarea>
            </td>    
            <td>
            <div class="error-left"></div>
            <div class="error-inner" id="ecausa2">Este campo es requerido.</div>
            </td>
        </tr>
        <tr>
            <th valign="top">
                Solución: 
            </th> 
            <td>
                <textarea rows="" cols="" class="form-textarea" id="solucion2" name="solucion2"></textarea>
            </td>    
            <td>
            <div class="error-left"></div>
            <div class="error-inner" id="esolucion2">Este campo es requerido.</div>
            </td>
        </tr>
        <tr>
            <th valign="top">
                   Componente:
            </th> 
            <td>
                <select id="idComponente" name="idComponente">
                    <option value="">[Componente]</option>
                    <s:iterator value="ticket.idDispositivo.ComponentesCollection" status="estatus">
                            <option value="<s:property value='Id'/>"><s:property value="idTipo.tipo"/></option>   
                    </s:iterator>
                </select>
            </td>    
            <td>
            <div class="error-left"></div>
            <div class="error-inner" id="eidComponente">Este campo es requerido.</div>
            </td>
        </tr>
        <tr>
            <th valign="top">
                SLA: 
            </th> 
            <td>
                <select id="idSla2" name="idSLa2">
                        <option value="">[SLA]</option>
                        <s:iterator value="listaSlas" status="estatus">
                            <option value="<s:property value='IdSLA'/>"><s:property value="IdSLA"/></option>   
                        </s:iterator>
                </select>
            </td>    
            <td>
            <div class="error-left"></div>
            <div class="error-inner" id="eidSla2">Este campo es requerido.</div>
            </td>
        </tr>
        <tr>
            <td><input type="button" id="btnAltaSolucion" value="Aceptar" class="btn"/></td>
        </tr>   
</table>
